﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Kingsoft MogileFS Files Manage System--管理员选项</title>
<link href="../site_media/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<map name="Map" id="Map"><area shape="rect" coords="2,3,318,59" href="../index" target="_self" alt="首页" />
</map>
<table style="width: 100%; height: 60px">
    <tr>
      <td width="320"> 
        <img src="../site_media/logo.png" width="320" height="60" border="0" usemap="#Map" />        
      </td>
        <td valign="baseline">
          <ul id="nav"> 
               <li><a href="../logout/" >退出</a></li>
               <li><a href="../admin_mgr/" id="current">管理选项</a></li>    
               <li><a href="../addtracker/" >Tracker管理</a></li> 
               <li><a href="../addmogilefs/" >添加组群</a></li> 
               <li><a href="../index" >首 页</a></li> 
        </ul> 
       </td>
     </tr>
</table>
 <div align="center">  <br>
   <table width="85%" border="0" cellpadding="2" cellspacing="2" class="index_table">
     
     <tr>
       <td class="info_tile">用户</td>
       <td class="info_tile">邮箱</td>
       <td class="info_tile">最后登录时间</td>
       <td class="info_tile">操作</td>
     </tr>
 
    {% for record in AdminsLogs %}
     <tr>
       <td class="info_td">{{ record.aLoginID }}</td>
       <td class="info_td">{{ record.email }}</td>
       <td class="info_td">{{ record.logTime }}</td>
       <td class="info_td"><a href="../viewlog/?aID={{ record.id }}">查看日志</a></td>
     </tr>
    {% endfor %}
   </table>
   <br>

<form id="form1" name="form1" method="post" action="">
  <table width="85%" border="0" cellpadding="2" cellspacing="2" class="index_table">
    <tr>
      <td colspan="2" class="title">修改密码</td>
    </tr>
    <tr>
      <td width="40%" class="index_td1">密码：</td>
      <td width="60%" class="index_td2"><label>
        <input type="password" name="newPsw" id="newPsw" />
      </label></td>
    </tr>
    <tr>
      <td class="index_td1">确认：</td>
      <td class="index_td2"><label>
        <input type="password" name="newPsw2" id="newPsw2" />
      </label></td>
    </tr>
    <tr>
      <td class="index_td1"><label></label>
        邮件： </td>
      <td class="index_td2"><label>
        <input type="text" name="txtEmail" id="txtEmail" />
      </label></td>
    </tr>
    <tr>
      <td colspan="2"><input type="submit" name="btnMofPsw" id="btnMofPsw" value="提交" />
      <label>&nbsp;&nbsp;&nbsp;&nbsp;
      <input type="reset" name="button" id="button" value="重置" />
      </label></td>
    </tr>
  </table>
  {% if Empty %}
      <font color="red"><b>注: 密码不能为空</b></font>
  {% else %}
      {% if NotSame %}
          <font color="red"><b>密码不一样</b></font>
      {% else %}
          {% if UpdateOk %}
	       <font color="red"><b>修改成功!</b></font>
	  {% endif %}
      {% endif %}
  {% endif %}
</form>
   <form id="form2" name="form2" method="post" action="">
   <table width="85%" border="0" cellpadding="2" cellspacing="2" class="index_table">
     <tr>
       <td colspan="2" class="title">添加管理者</td>
     </tr>
     <tr>
       <td width="40%" class="index_td1">登录名</td>
       <td width="60%" class="index_td2">
         <label>
           <input type="text" name="loginID" id="loginID" />
          </label>       </td>
     </tr>
     <tr>
       <td class="index_td1">密码</td>
       <td class="index_td2"> 
         <label>
           <input type="password" name="txtpsw" id="txtpsw" />
          </label>       </td>
     </tr>
     <tr>
       <td class="index_td1">确认密码</td>
       <td class="index_td2"> 
         <label>
           <input type="password" name="txtpsw2" id="txtpsw2" />
          </label>       </td>
     </tr>
     <tr>
       <td class="index_td1">邮箱 (可选)</td>
       <td class="index_td2"> 
         <label>
           <input type="text" name="txtEmail" id="txtEmail" />
          </label>       </td>
     </tr>
     <tr>
       <td colspan="2" class="index_table"><label>
         <input type="submit" name="button" id="button" value="提交" />
       </label>
       &nbsp;&nbsp;&nbsp;&nbsp;
        <label>
        <input type="reset" name="button2" id="button2" value="重置" />
        </label></td>
      </tr>
   </table>
   {% if Empty %}
       <font color="red"><b>填写未完整</b></font>
   {% else %}
       {% if NameExist %}
           <font color="red"><b>管理用户已存在</b></font>
       {% endif %}
       {% if NotSame %}
	   <font color="red"><b>密码填写不正确!</b></font>	
       {% endif %}
       {% if AddOk %}
	   <font color="red"><b>添加成功!用户登录后才在上表显示!</b></font>	
       {% endif %}
   {% endif %}

   </form>   
   <br>
<form id="form3" name="form3" method="post" action="">
<table width="85%" border="0" cellpadding="2" cellspacing="2" class="index_table">
  <tr>
    <td colspan="2" class="title">删除管理者</td>
    </tr>
  <tr>
    <td width="40%" class="index_td1">用户名：</td>
    <td width="60%" class="index_td2">
      <label class="index_td2">
        <input type="text" name="delUserID" id="delUserID" />
        </label>    
      <label>
        <input type="submit" name="btnDelAdmin" id="btnDelAdmin" value="提交" />
        </label>    </td>
   </tr>
</table>
   {% if DelOk %}
       <font color="red"><b>删除成功!</b></font>
   {% endif %}
   {% if NameNotExist %}
       <font color="red"><b>管理用户不存在!</b></font>
   {% endif %}
</form>


<form id="form4" name="form4" method="post" action="">
<table width="85%" border="0" cellpadding="2" cellspacing="2" class="index_table">
  <tr>
    <td colspan="2" class="title">修改数据刷新间隔时间</td>
    </tr>
  <tr>
    <td width="40%" class="index_td1">间隔时间 (秒) ：</td>
    <td width="60%" class="index_td2">
      <label class="index_td2">
        <input type="text" name="flushTime" id="flushTime" />
        </label>    
      <label>
        <input type="submit" name="btnFlushTime" id="btnFlushTime" value="提交" />
        </label>    </td>
   </tr>
</table>
   {% if TimeOk %}
       <font color="red"><b>修改成功!</b></font>
   {% else %}
	{% if TimeFaile %}
          <font color="red"><b>修改失败!</b></font>
   	{% else %}
		{% if TimeLimit %}
          		<font color="red"><b>刷新时间不能少于5秒!</b></font>
        	{% endif %}
	{% endif %}
   {% endif %}
</form>


<p>&nbsp;</p>
</div>
</body>
</html>
